home *** CD-ROM | disk | FTP | other *** search
- class classes.fx.ExploA
- {
- var id;
- var x;
- var y;
- var scale;
- var a;
- var color;
- var clip;
- var trans;
- var colorTrans;
- var Name = "exploA";
- function ExploA(px, py, pscale, pa, pcolor, pid)
- {
- this.id = pid;
- this.x = px;
- this.y = py;
- this.scale = pscale;
- this.a = pa + 15;
- this.color = pcolor;
- _root.d = _root.d + 1;
- this.clip = _root.attachMovie("exploA","exploA" + this.id + "Clip",_root.d + 83000);
- this.clip._x = this.x;
- this.clip._y = this.y;
- this.clip._xscale = this.scale;
- this.clip._yscale = this.scale;
- this.clip.color = this.color;
- var _loc5_ = _root.randRange(-75,75);
- var _loc4_ = _root.randRange(-75,75);
- var _loc3_ = _root.randRange(-75,75);
- this.trans = new flash.geom.Transform(this.clip);
- this.colorTrans = new flash.geom.ColorTransform(1,1,1,1,_loc5_,_loc4_,_loc3_,0);
- this.trans.colorTransform = this.colorTrans;
- this.clip._alpha = this.a;
- }
- function main()
- {
- if(random(5) == 0)
- {
- if(this.clip.hitTest(_root[_root.char + "Clip"]))
- {
- _root[_root.char].nudge(_root.randRange(-9,9),_root.randRange(-9,9),this.scale - _root.randRange(10,40));
- }
- }
- if(this.clip.end)
- {
- _root.removeFX("exploA" + this.id);
- }
- }
- }
-